package com.sinosun.autotestmachine.tools;

public enum ValueType {
	INDEX(0),
	CONTENT(1);

	int value;
	
	ValueType(int value) {
		this.value = value;
	}
	
	public int value() {
		return this.value;
	}
	
	public ValueType valueOf(int value) {
		switch(value) {
		case 0:
			return INDEX;
		case 1:
			return CONTENT;
		default:
			return null;
		}
	}
}
